package top.lt.lt_ssm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import top.lt.lt_ssm.bean.prosto;
import top.lt.lt_ssm.dao.ProstoDao;
import top.lt.lt_ssm.service.ProstoService;

@Service
public class ProstoServiceImpl implements ProstoService{
	
	@Resource
	private ProstoDao prostoDao;

	@Override
	public List<prosto> Getall() {
		return prostoDao.Getall();
	}

	@Override
	public int delbyPid(int id) {
		return prostoDao.delbyPid(id);
	}

	@Override
	public prosto getByid(int pid) {
		return prostoDao.getByid(pid);
	}

	@Override
	public int updBypid(prosto ps) {
		int ub = prostoDao.updBypid(ps);
		return ub;
	}

	@Override
	public List<prosto> getBypid(int aid) {
		return prostoDao.getBypid(aid);
	}

	@Override
	public List<prosto> getBypname(String pname) {
		return prostoDao.getBypname(pname);
	}
}
